/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package cn.apestar.modules.meibang.consultation.entity;

import java.util.Date;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import cn.apestar.common.persistence.DataEntity;
import cn.apestar.modules.sys.entity.User;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * consultationEntity
 * @author consultation
 * @version 2017-06-03
 */
public class BeautyConsultationOrder extends DataEntity<BeautyConsultationOrder> {

    private static final long serialVersionUID = 1L;

    private User user; // 用户ID

    private String type; // 美甲-A、美睫-B、纹绣-C、手足护理-D、肩颈-E、面部-F

    private String status; // 启用-1，禁用-0

    private Date startDate; // 开始生效时间

    private Date endDate; // 结束生效时间

    private Long institutionId; // 企业ID

    public BeautyConsultationOrder() {
        super();
    }

    public BeautyConsultationOrder(String id) {
        super(id);
    }

    @NotNull(message = "用户ID不能为空")
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Length(min = 1, max = 20, message = "美甲-A、美睫-B、纹绣-C、手足护理-D、肩颈-E、面部-F长度必须介于 1 和 20 之间")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Length(min = 1, max = 20, message = "启用-1，禁用-0长度必须介于 1 和 20 之间")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "开始生效时间不能为空")
    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "结束生效时间不能为空")
    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Long getInstitutionId() {
        return institutionId;
    }

    public void setInstitutionId(Long institutionId) {
        this.institutionId = institutionId;
    }

}